package com.redare.dev.smart.generator.sdk;

import com.redare.dev.smart.generator.sdk.pojo.OnlFormHead;
import com.redare.dev.smart.generator.sdk.pojo.form.OnlFormHeadForm;
import com.redare.devframework.common.pojo.CommonResult;
import com.redare.devframework.common.pojo.Page;

import java.util.List;

/**
 * sdk
 *
 * @author yangqiangyu
 * @date 2021-08-28 11:44:05
 */
public interface OnlFormHeadSdk {

    /**
     * 新增
     */
    CommonResult<Boolean> addOnlFormHead(OnlFormHeadForm.Add form);


    /**
     * 新增
     */
    CommonResult<Boolean> parseAddOnlFormHeadByBean(OnlFormHeadForm.Parse form);


    CommonResult<Boolean> syncAddOnlFormHeadByBean();


    /**
     * 编辑
     */
    CommonResult<Boolean> editOnlFormHead(OnlFormHeadForm.Edit form);

    /**
     * 删除
     */
    CommonResult<Boolean> deleteOnlFormHead(OnlFormHeadForm.Del form);

    /**
     * 查询
     */
    CommonResult<List<OnlFormHead>> findOnlFormHeadList(OnlFormHeadForm.Search form);

    /**
     * 分页查询
     */
    CommonResult<List<OnlFormHead>> findOnlFormHeadList(OnlFormHeadForm.Search form, int curPage, int pageSize);

    /**
     * 分页查询
     */
    CommonResult<Page<OnlFormHead>> findOnlFormHeadPage(OnlFormHeadForm.Search form, int curPage, int pageSize);

    /**
     * 获取
     */
    CommonResult<OnlFormHead> getOnlFormHead(OnlFormHeadForm.Get form);


}

